
// Copyright (c) 2002 HTHK
package admin.menu;

import java.util.*;
/**
 * A Class class.
 * <P>
 * @author HTHK
 */
public class Folder
  extends Item
{

  private Vector folders=new Vector();
  private Vector items=new Vector();

  /**
   * Constructor
   */
  public Folder()
  {
      super();
  }

  public Folder(String id,String name, String url, int sequence, String parentId)
  {
      super(id,name,url,sequence,parentId);
  }

  public void addFolder(Folder folder)
  {
      this.folders.addElement(folder);
      folder.setRoot(false);
  }

  public void addItem(Item item)
  {
      this.items.addElement(item);
      item.setRoot(false);
  }

  public Vector getFolders()
  {
      return this.folders;
  }

  public Vector getItems()
  {
      return this.items;
  }
}

 